package com.ytt.core.model.student;

import com.ytt.core.model.major.MajorDto;
import com.ytt.core.model.user.UserDto;
import com.ytt.core.model.user.UserEditDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import javax.validation.constraints.Size;
import java.util.Date;
import java.util.Set;

@ApiModel(description = "学生信息")
@Getter
@Setter
@ToString(callSuper = true)
public class StudentDto {
    @ApiModelProperty(position = 1, notes = "对象ID，新增时应当为null, 系统会自动生成", required = true)
    private String id;

    @ApiModelProperty(position = 320, value = "所属的用户")
    private  UserDto user;

    @ApiModelProperty(position = 320, value = "学号，唯一性")
    private  String student_id;

    @ApiModelProperty(position = 320, value = "是否毕业")
    private  Boolean is_graduation;

    @ApiModelProperty(position = 320, value = "所属的专业")
    private  MajorDto major;

    @ApiModelProperty(position = 320, value = "年级")
    private  int grade;
}
